/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pehulja.mmdo.coursework.gui.graph;

/**
 *
 * @author pehulja
 */
public class Line {
    private Point pointA, pointB;
    private String label;
    public Point getPointA() {
        return pointA;
    }

    public void setPointA(Point pointA) {
        this.pointA = pointA;
    }

    public Point getPointB() {
        return pointB;
    }

    public void setPointB(Point pointB) {
        this.pointB = pointB;
    }

    public Line(double x1, double y1, double x2, double y2, String label) {
        pointA = new Point(x1, y1);
        pointB = new Point(x2, y2);
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
       
}
